// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
//手动自定义配置
import dev from '../config/dev.env'

Vue.prototype.$dev = dev;
Vue.config.productionTip = false;
//导入路由的包
import router from './router/index';

//导入http包
import AjaxIos from "axios"
//允许ajax发送请求是附带cookie
AjaxIos.defaults.withCredentials = true;
//把对象挂载vue属性上
Vue.prototype.$http = AjaxIos;


//导入选中的阿里巴巴的字体图标
import './lib/font-icon/iconfont.css'
import './lib/font-icon/iconfont'

//导入vue-resource


//按需导入Mint-UI 中的组件
import 'mint-ui/lib/style.css'
import {Header, TabItem, Swipe, SwipeItem, Tabbar} from 'mint-ui';

Vue.component(Header.name, Header);
Vue.component(TabItem.name, TabItem);
Vue.component(Swipe.name, Swipe);
Vue.component(SwipeItem.name, SwipeItem);
Vue.component(Tabbar.name, Tabbar);

/* eslint-disable no-new */
new Vue({
  el: '#app',
  components: {App},
  template: '<App/>',
  router,
});
